package cn.humaohua.study.yanmo_design_pattern.ch24.v2;

/**
 * Created by hmh on 09/01/2018.
 */
public class SpecialUrgencyMessage extends AbstractMessage {
    public SpecialUrgencyMessage(MessageImplementor impl) {
        super(impl);
    }

    public void hurry(String messageId) {
        //执行催促的业务, 发出催促的信息
    }

    @Override
    public void sendMessage(String message, String toUser) {
        message = "special urgency " + message;
        super.sendMessage(message, toUser);
        //还需要增加一条待催促的消息
    }
}
